package com.like.hospitalworld;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.TextView;

import com.like.adapter.TwoTabPagerAdapter;
import com.like.fragment.DrugHelperAdultFragment;
import com.like.fragment.DrugHelperChildFragment;
import com.like.fragment.TwoTabFragment;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.activity_drug_helper)
public class DrugHelperActivity extends BaseActivity {

    private DrugHelperAdultFragment mAdultFragment;
    private DrugHelperChildFragment mChildFragment;
    private TwoTabFragment mTwoTabFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mAdultFragment = new DrugHelperAdultFragment();
        mChildFragment = new DrugHelperChildFragment();
        mTwoTabFragment = new TwoTabFragment();
        mTwoTabFragment.setTitles("成人OTC", "儿科OTC");
        mTwoTabFragment.setFragments(mAdultFragment, mChildFragment);
        getSupportFragmentManager().beginTransaction().add(R.id.container, mTwoTabFragment).commit();
    }

}
